<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/template/common/header.jsp"%>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);"
		action="${base }/tag!list.action" method="post" rel="pagerForm"
		id="recommendListForm">
		<div class="searchBar">
			<table class="searchContent">
				<tr>
					<td>标题<input type="text" name="tag.title"
						value="${recommend.title }" alt="请输入标题 " size="30" /></td>
					<td>分类名称<input type="text" name="tag.categoryTitle"
						value="${recommend.title }" alt="请输入分类名称 " size="30" /></td>
				</tr>
			</table>
			<div class="subBar">
				<ul>
					<li><div class="buttonActive">
							<div class="buttonContent">
								<button type="submit">检索</button>
							</div>
						</div></li>
				</ul>
			</div>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${base }/tag!add.action"
				target="dialog" rel="tag_add" height="500" width="550" mask="true"><span>添加标签</span></a></li>
			<li class="line">line</li>
			<li><a class="add" href="${base }/tag!file.action"
				target="dialog" rel="tag_file" height="200" width="550" mask="true"><span>添加导入文件</span></a></li>
			<li class="line">line</li>
			<li><a class="add" href="${base }/tag!build.action"
				target="ajaxToDo" rel="tag_file" height="200" width="550"
				mask="true"><span>生成标签文件</span></a></li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="40">标题</th>
				<th width="40">分类</th>
				<th width="20">创建时间</th>
				<th width="20">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${tags }" var="tag">
				<tr target="tag" rel="${tag.id}">
					<td>${tag.title }</td>
					<td>${tag.categoryTitle }</td>
					<td><fmt:formatDate value="${tag.createDate }"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
					<td><a title="${tag.categoryTitle }-${tag.title }"
						href="${base }/tag!edit.action?tag.id=${tag.id}" target="dialog"
						class="btnEdit">编辑</a> <a
						title="确定要删除标签${tag.categoryTitle}-${tag.title}?"
						target="ajaxTodo"
						href="${base }/tag!delete.action?tag.id=${tag.id}" class="btnDel">删除</a></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<cy:pagination pageBean="${pager }" pageUrl="${base }/tag!list.action">
	<%@include file="/WEB-INF/template/common/pagination.jsp"%>
</cy:pagination>